import { useEffect } from "react";
import { useLocation } from "react-router-dom";

export const useRouteMonitor = () => {
  const location = useLocation();

  useEffect(() => {
    console.log("Current route:", location.pathname);
  }, [location]);
};
